package com.zhiyin.seal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyin.seal.entity.AccessTokenEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface SystemDao extends BaseMapper {

    Integer insertAccessToken(@Param("accessTokenEntity") AccessTokenEntity accessTokenEntity);

    AccessTokenEntity selectAccessToken(@Param("type") Integer type);

    Integer insertDataBySql(String sql);

    List<Map<String,Object>> selectDataBySql(String sql);

    Integer updateDataBySql(String sql);

    Integer deleteDataBySql(String sql);
}
